package biz

import "ywebgo/context"

func QueryUsers(c *context.Context) {
	user := &User{}
	c.ReadJson(user)
	/**
	biz.....
	*/
	users := []User{*user, *user, *user, *user, *user, *user}
	c.ResultOK(users)
}

func QueryUserById(c *context.Context) {
	/**
	biz.....
	*/
	user := &User{
		Id:   "1",
		Name: "YinHu",
		Age:  "18",
	}
	c.ResultOK(user)
}
